package it.unibz.easytravel.expenses;

import it.unibz.easytravel.common.Person;

import java.util.Date;
import java.util.Vector;

/**
 * Data class for storing expense information
 * @author Tadas & Valdemaras
 *
 */
public class Expense {
	
	private int id;
	
	private Date date;
	
	private int amount;
	
	// A vector whose elements are of class Person
	private Vector debtors;
	
	private String description;

	private int creditor;
	
	public Expense(int id, int amount, int creditor, Vector persons, String description) {
		this.id = id;
		this.amount = amount;
		this.creditor = creditor;
		this.debtors = persons;
		this.description = description;
	}

	public int getAmount() {
		return amount;
	}
	
	public void setAmount(int amount) {
		this.amount = amount;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	
	public int getCreditorsId() {
		return creditor;
	}

	public void setCreditor(int creditor) {
		this.creditor = creditor;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Vector getDebtorsIds() {
		return debtors;
	}
	
	


}
